<template>
	<view class="content">
		<view class="item">
			<view class="code iconbox">
				基本信息<view class="icon iconfont icon-guanyu"></view>
			</view>
			<view class="list">
				<text class="name">申请时间</text>
				<text>2024-02-20 12：00</text>
			</view>
			<view class="list">
				<text class="name">订单编号</text>
				<text>20270220101255</text>
			</view>
			<view class="list">
				<text class="name">公司</text>
				<text>中铁七局集团郑州工程有限公司</text>
			</view>
			<view class="list">
				<text class="name">项目</text>
				<text>濮新高速项目</text>
			</view>
			<view class="list">
				<text class="name">供应商</text>
				<text>河南豫雅商贸有限公司</text>
			</view>
		</view>
		<view class="item">
			<view class="code iconbox">
			   开票信息 <view class="icon iconfont icon-guanyu"></view>
			</view>
			<view class="list">
				<text class="name">开票类型</text>
				<text>专项发票</text>
			</view>
			<view class="list">
				<text class="name">开票抬头</text>
				<text>河南豫雅商贸有限公司</text>
			</view>
			<view class="list">
				<text class="name">开票税号</text>
				<text>50909096776543</text>
			</view>
			<view class="list">
				<text class="name">开户行</text>
				<text>招商银行郑州支行</text>
			</view>
			<view class="list">
				<text class="name">开户账号</text>
				<text>61234567895652</text>
			</view>
			<view class="list">
				<text class="name">电话</text>
				<text>134567895652</text>
			</view>
			<view class="list">
				<text class="name">开户地址</text>
				<text>河南郑州</text>
			</view>
		</view>
		<view class="item">
			<view class="code iconbox">
				货物信息<view class="icon iconfont icon-guanyu"></view>
			</view>
			<view class="list">
				<text class="name">商品名称</text>
				<text>石子</text>
			</view>
			<view class="list">
				<text class="name">商品规格</text>
				<text>1*54</text>
			</view>
			<view class="list">
				<text class="name">数量</text>
				<text>54</text>
			</view>
			<view class="list">
				<text class="name">商品金额</text>
				<text>1054</text>
			</view>
			<view class="list">
				<text class="name">税率%</text>
				<text>1.4</text>
			</view>
			<view class="list">
				<text class="name">税额</text>
				<text>1111</text>
			</view>
		</view>
		<view class="item">
			<view class="code iconbox">
				发票凭证<view class="icon iconfont icon-guanyu"></view>
			</view>
			<view class="typebox">
				<text>发票类型</text>
				<view class="typeitem"  @tap="changeType"><uni-icons :type="type==1?'checkbox-filled':'circle'" size="20"></uni-icons>电子发票 </view>
				<view class="typeitem"   @tap="changeType"><uni-icons :type="type==2?'checkbox-filled':'circle'" size="20"></uni-icons>纸质发票</view>
			</view>
			<view class="upload">
				<view class="example-body imgbox">
					<uni-file-picker limit="1" title="发票附件" file-mediatype="all"  @select="selected"></uni-file-picker>
				</view>
			</view>
		</view>
		<view class="btnbox">
			<button class="btn">提交</button>
		</view>
	</view>
</template>

<script setup>
	import {
		onShow,
		onLoad,
		onNavigationBarButtonTap
	} from '@dcloudio/uni-app';
	import {
		ref,
		reactive
	} from 'vue';
	const type = ref(1)
	const imgurl = ref('')
	const changeType = ()=>{
		type.value =  type.value==1?type.value=2:type.value=1
	}
	const selected = (res) => {
		imgurl.value = res.tempFiles[0].path
	}
</script>

<style lang="scss">
	.item {
		margin: 20rpx 0;
		background-color: #fff;
		padding: 20rpx 30rpx;
		box-sizing: border-box;
	
		.code {
			font-size: 32rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			color: #333;
	
			.status {
				font-size: 28rpx;
			}
		}
		.iconbox{
			justify-content: flex-start;
			gap: 10rpx;
			.icon{
				font-size: 40rpx;
				color: #ff6700;
			}
		}
	
		.list {
			width: 100%;
			margin-top: 20rpx;
			font-size: 28rpx;
			color: #333;
	
			.name {
				display: inline-block;
				width: 140rpx;
				text-align: right;
				margin-right: 30rpx;
			}
		}
		.typebox {
			display: flex;
			justify-content: flex-start;
			gap: 30rpx;
			align-items: center;
			font-size: 28rpx;
			margin: 30rpx ;
		
			.typeitem {
				display: flex;
				justify-content: flex-start;
				align-items: center;
			}
		}
		.upload{
			display: flex;
			justify-content: flex-start;
			gap: 30rpx;
			align-items: center;
			font-size: 28rpx;
			margin: 30rpx ;
			.imgbox{
				width: 100%;
				image{
					width: 100%;
				}
			}
		}
	}
	.btnbox{
		display: flex;
		justify-content: center;
		padding: 60rpx 0;
		.btn{
			background-color: #f6bf00;
			color: #333;
			font-size: 28rpx;
			height: 80rpx;
			width: 600rpx;
			line-height: 80rpx;
		}
	}
</style>